You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During tracking down a totally different problem, I noticed that there is a doctest from uncertainty_sets that is invalid code and doesn't run. We don't fail on warnings, so we hadn't noticed before.
Steps to reproduce the issue
I noticed this in the doctests when I was looking at something else entirely
The thing that is unclear to me, however - this test fails because conf_ellipsoid.scale outputs np.float64(9.4877...). Is it intended that XX.scale can return an np.float object, or is it intended to be cast to a raw Python float? I didn't want to make an assumption, so I hand this off to the PyROS folks to decide what the right behavior is.
Error Message
Document: api/pyomo.contrib.pyros.uncertainty_sets.EllipsoidalSet-----------------------------------------------------------------**********************************************************************File "..\..\pyomo\contrib\pyros\uncertainty_sets.py", line ?, in defaultFailed example: conf_ellipsoid.scaleExpected: 9.4877...Got: np.float64(9.487729036781154)**********************************************************************1 item had failures: 1 of 15 in default15 tests in 1 item.14 passed and 1 failed.***Test Failed*** 1 failure.
Information on your system
Pyomo version: 6.9.2.dev0
Python version: Multiple
Operating system: Windows (NOTE: Only seems to happen on Windows)
How Pyomo was installed (PyPI, conda, source): source
Solver (if applicable):
The text was updated successfully, but these errors were encountered:
Summary
During tracking down a totally different problem, I noticed that there is a doctest from
uncertainty_sets
that is invalid code and doesn't run. We don't fail on warnings, so we hadn't noticed before.Steps to reproduce the issue
I noticed this in the doctests when I was looking at something else entirely
In looking at that code, there is, in fact, a problem. Here is the code now:
I think it should actually be:
The thing that is unclear to me, however - this test fails because
conf_ellipsoid.scale
outputsnp.float64(9.4877...)
. Is it intended thatXX.scale
can return annp.float
object, or is it intended to be cast to a raw Pythonfloat
? I didn't want to make an assumption, so I hand this off to the PyROS folks to decide what the right behavior is.Error Message
Information on your system
Pyomo version: 6.9.2.dev0
Python version: Multiple
Operating system: Windows (NOTE: Only seems to happen on Windows)
How Pyomo was installed (PyPI, conda, source): source
Solver (if applicable):
The text was updated successfully, but these errors were encountered: